<script>
  $jq(document).ready(function() {
    PeopleMedia.Connect.initYesVotes('Sent');
    PeopleMedia.Connect.MutualFavoriteCount = 0;
    PeopleMedia.Connect.IncomingFavoriteCount = 0;
  });
</script>    
<div class="yescontent">

  <div class="yescontenttoprow">
    <p class="results"><span id="yesCount"><?php echo count($totalUserView); ?> Results</span></p>
    <div id="paginationalone">
      <div id="paginationYesesTop">
        <?php echo $data['pagination']['html']; ?>
      </div>
    </div>

    <div class="toprowfloatright">
      <div class="listpagelinksarea">
        <div class="listpagelinksarea3 listpagelinksarea3on" onclick="PeopleMedia.Connect.goToYesVotesSent();" id="listYesSent">
          <p><a href="javascript:;">I Voted Yes</a></p>
        </div>

        <div style="display:none;" id="yesmutualPopUp" class="tooltipwrapper">
          <div class="tooltip" id="mutual">
            <div onclick="PeopleMedia.Connect.hideYesMutualPopUp();" class="tooltipclose">
              <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/mediumclosebtn.png'); ?>">
            </div>
            <div class="box shadow border-color-main">
              <div class="tooltipleft">0</div>
              <div class="tooltipright">You have 0 new Mutual Today's <br>Matches. <span onclick="PeopleMedia.Connect.goToMutualYesVotes();" class="color-main">Find out who!</span></div>
            </div>
            <div class="arrowarea">
              <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/arrowdown_small.png'); ?>">
            </div>
          </div>
        </div>

        <div class="listpagelinksarea2 " onclick="PeopleMedia.Connect.goToMutualYesVotes();" id="listYesMutual">
          <p><a href="javascript:;">Mutual</a></p>
          <p style="display:none" class="starlink" id="starburstYesesMutualCount"><a id="listYesesMututalCount" href="#">0</a><span></span></p>
        </div>

        <div style="display:none;" id="yesincomingPopUp" class="tooltipwrapper">
          <div class="tooltip" id="yestome">
            <div onclick="PeopleMedia.Connect.hideYesVoteCountPopUp();" class="tooltipclose">
              <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/mediumclosebtn.png'); ?>">
            </div>
            <div class="box shadow border-color-main">
              <div class="tooltipleft">0</div>
              <div class="tooltipright">members think you are a<br>possible match. <span onclick="PeopleMedia.Connect.goToYesVotesReceived();" class="color-main">Find out who!</span></div>
            </div>
            <div class="arrowarea">
              <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/arrowdown_small.png'); ?>">
            </div>
          </div>
        </div>

        <div class="listpagelinksarea1 " onclick="PeopleMedia.Connect.goToYesVotesReceived();" id="listYesReceived">
          <p><a href="javascript:;">Yes to Me</a></p>
          <p style="display:none" class="starlink" id="starburstYesesReceivedCount"><a id="listYesesReceivedCount" href="#">0</a><span></span></p>
        </div>
      </div>
    </div>
  </div>
  <div class="yescontentmiddlerow" id="YesesListContent">
    <?php if (count($totalUserView) > 0): ?>
      <div class="inboxcontenttoprow2">
        <div class="inboxcontenttoprow2col1">
          <input type="checkbox" onclick="PeopleMedia.Connect.selectAllDeleteCheckBoxes('Yeses')" value="" id="selectAllCheckBoxYeses" name="">
          <p><a onclick="PeopleMedia.Connect.clickSelectArea('Yeses')" href="#">Select All</a></p>
        </div>
        <div class="inboxcontenttoprow2col2"> <a onclick="PeopleMedia.Connect.deleteSelectedMembers('Yeses', 0, <?php echo $data['filter']; ?>, 1);" href="#" class="button_style_send" title="Delete">Delete</a> </div>
      </div>
      <?php
    else: echo $data['noRecord'];
    endif;
    ?>
    <div id="connectYesesMemberList">
      <?php
      $count = 0;
      foreach ($rsUserView as $item):
        ?>
        <div id="connectItem<?php echo $count; ?>Yeses" class="profilerepeat ">
          <div class="profilerepeatcol0">
            <input type="checkbox" onchange="PeopleMedia.Connect.selectSingleDeleteCheckBox('Yeses', <?php echo $count; ?>)" value="" class="deleteCheckboxYeses" id="checkboxDelete<?php echo $count; ?>Yeses" name="<?php echo $item['user_id']; ?>">
          </div>
          <div class="profilerepeatcol1">
            <div id="profileoverlayplace">
              <div style="" id="profileoverlay">

                <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>"></a></p>
              </div>
            </div>
            <a title="ChristyAver" href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>">
              <?php
              $link_img = FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif';
              if ($item['link_img'] != null)
                $link_img = FRONT_SITE_URL . 'www/uploads/photos/thumbs/thumb_' . $item['link_img'];
              else {
                $link_img = $item['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
              }
              ?>
              <img border="0" class="userpic" title="<?php echo $item['username']; ?>" src="<?php echo $link_img; ?>"></a>
          </div>
          <div class="profilerepeatcol2">
            <div class="profilerepeatcol2row1">
              <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>"><?php echo $item['username']; ?></a></p>
              <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/checkicon.png'); ?>">
              <p class="lightgraytext timestampcl">Yessed: <?php echo changedDateFormat($item['date_view'], 'd-m-Y'); ?></p>
            </div>


            <div class="profilerepeatcol2row2">

              <p><?php echo calculateYearOld($item['birthdate']); ?> | <?php echo $item['country_name']; ?>
              </p>
            </div>

            <div class="profilerepeatcol2row3">
              <p><span class="lightgraytext">A little about me: </span>
                <?php echo $item['greeting1']; ?></a>
              </p>
            </div>

            <div class="profilerepeatcol2row4">

              <a style="<?php echo $item['user_favorited'] != null ? 'display:none' : 'display:inline'; ?>" onclick="PeopleMedia.Connect.toggleFavorite(true, '<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Yeses', 'connectyes', 'None')" title="Save as Favorite" class="SaveToFavorites<?php echo $count; ?>Yeses" href="javascript:void(0);">
                <img border="0" src="<?php echo app()->createAbsoluteUrl('www/images/images1/favoriteicon.png'); ?>" title="Save as Favorite"> 
              </a>
              <a style="<?php echo $item['user_favorited'] == null ? 'display:none' : 'display:inline'; ?>" title="Saved as Favorite" onclick="PeopleMedia.Connect.toggleFavorite(false, '<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Yeses', 'connectyes', 'None')" class="RemoveFromFavorites<?php echo $count; ?>Yeses" href="javascript:void(0);">
                <img border="0" src="<?php echo app()->createAbsoluteUrl('www/images/images1/favoritedicon.png'); ?>" title="Saved as Favorite">   
              </a>

              <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>"> <img border="0" src="<?php echo app()->createAbsoluteUrl('www/images/images1/messageicon.png'); ?>" title="Send a Message"> </a> 
            </div>

          </div>

          <div class="profilerepeatcol3">
            <textarea rows="" cols="" class="connectWriteMessageTextArea" id="connectInlineMessage<?php echo $count; ?>Yeses" maxlength="3000">Write a quick message...</textarea>

            <a title="Send" class="button_style_send" onclick="PeopleMedia.Connect.sendMessage('<?php echo $item['user_id']; ?>',<?php echo $count; ?>, 'Yeses', '<?php echo $item['username']; ?>', 0,<?php echo $data['filter']; ?>, 1, 'connectyes', 56, 'None');" id="SendMessageButtonLink" href="javascript:void(0);">Send</a> </div>

          <div class="profilerepeatcol4"> <a title="Delete Yes" onclick="PeopleMedia.Connect.removeItem(<?php echo $count; ?>, 'Yeses', 'connectyes')" href="javascript:void(0);"><img border="0" class="hide1" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/hidebutton.png"></a> </div>

          <p class="clearfix">&nbsp;</p>
          <div style="display:none;" id="popupshowdelete<?php echo $count; ?>Yeses" class="popupshowblock">
            <div class="overlayplace">
              <div class="popupshapestyle deleteactionoverlay">
                <div class="largestclosebtn"> <a class="closebtn" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count; ?>, 'Yeses', 'connectyes')" title="Close" href="javascript:void(0);" id="PopupBlockCloseButton"><img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/largestclosebtn.png"></a> </div>
                <div class="blockcontent">
                  <h1>Are you sure you want to delete <span id="PopupBlockUsernameSpan">this Yes</span>?</h1>
                  <div class="sharecontentbuttonarea">
                    <p class="blocklinksbtn">
                      <a onclick="PeopleMedia.Connect.deleteConnectItem('<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Yeses', 0, <?php echo $data['filter']; ?>, 1, 'connectyes')" href="javascript:void(0);">Delete</a>
                      <a class="button_style" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count; ?>, 'Yeses', 'connectyes')" href="javascript:void(0);">No</a>
                    </p>
                  </div>
                </div>
              </div>
            </div>
            <div class="overlaywholescreen"></div>
          </div>

        </div>
        <?php
        $count++;
      endforeach;
      ?>
    </div>

    <div class="resultsloadingoverlay" id="LoadingResultsDiv" style="display:none">
      <div class="resultsloading bgcolor-main">
        <h1>
          Sending your message...</h1>
        <div class="loadinggraphic">
          <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/waitwheel.gif" alt="">
        </div>
        <p class="clearfix">
          &nbsp;</p>
      </div>
    </div>

  </div>

  <div class="bottomrow">

    <div id="paginationsearch" class="color-main">
      <div id="paginationFavoritesBottom">
        <?php echo $data['pagination']['htmlBottom']; ?>
      </div>
    </div>

  </div>

</div>